第 11 步:是时候将列表中的字母重新组合成一个字符串了!

    • 并在循环内拖动Add Value 。它应该缩进两次!
    • code_word my_var 1更改为value 。这会将letters列表中的每个项目添加到code_word
    • Print Variable添加到循环中,以在每次循环运行时打印code_word的值!

    此循环将列表中的每个项目添加在一起,并将它们作为字符串存储在变量code_word中。

    To navigate the page using the TAB key, first press ESC to exit the code editor.

    # THIS ACTIVITY IS IN PREVIEW ONLY MODE
    • Run Code
    • 提交作品
    • 下个活动
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)